package com.gdcp.service;


import com.gdcp.beans.Log;
import com.gdcp.common.PlatformEnum;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 杨华京
 * @version 1.0
 * @description
 * @since 1.8
 */
public interface LogService {

    /**
     * 分页查询
     */
    List<Log> findPageBreakByCondition(Log log);

    void asyncSaveSystemLog(PlatformEnum platform, String bussinessName);

    @Transactional(rollbackFor = Exception.class)
    Log insert(Log log);

    @Transactional(rollbackFor = Exception.class)
    boolean removeByPrimaryKey(Integer primaryKey);

    @Transactional(rollbackFor = Exception.class)
    boolean updateSelective(Log log);

    Log getByPrimaryKey(Integer primaryKey);
}
